package com.example.liunanxin.lnx226ordering.retrofitservice;



import com.example.liunanxin.lnx226ordering.beans.ModifyBean;
import com.example.liunanxin.lnx226ordering.beans.UserinfoBean;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;

public interface UserinfoService {
    //获取用户信息
    @GET("getUserById.do")
    Call<UserinfoBean> getUserById(@Query("user_id") int user_id);

    //修改用户信息
    @GET("updateUserById.do")
    Call<ModifyBean> updateUserById(@Query("user_id") int user_id,
                                    @Query("username") String username,
                                    @Query("userpass") String userpass,
                                    @Query("mobilenum") String mobilenum,
                                    @Query("address") String address);

}
